package com.example.newjiesai.mapper;

import com.example.newjiesai.entity.Term;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper       //需要注册mapper
@Repository
public interface TermMapper {

    int add(Term terminfo);

    int update(Term term);

    Term getTerminfoByImei(String term_imei);


      Term getTerminfoById(Integer id);

     List<Term> getTerminfoList(int page, int limit);
     List<Term> getTerminfoList2();
     int delete(Integer id);
     int getTerminfocount();



}
